///*****************************************
//  Copyright (C) 2009-2014
//  ITE Tech. Inc. All Rights Reserved
//  Proprietary and Confidential
///*****************************************
//   @file   <io.h>
//   @author Jau-Chih.Tseng@ite.com.tw
//   @date   2012/07/24
//   @fileversion: HDMIRX_SAMPLE_2.18
//******************************************/

#ifndef _IO_h_
#define _IO_h_
#include "config.h"
#include "typedef.h"
#include "debug.h"

#define HDMIRXADR       0x90
#define RXDEV           0

BYTE ReadI2C_Byte(BYTE RegAddr);
SYS_STATUS WriteI2C_Byte(BYTE RegAddr, BYTE d);

SYS_STATUS ReadI2C_ByteN(BYTE RegAddr, BYTE *pData, int N);
SYS_STATUS WriteI2C_ByteN(SHORT RegAddr, BYTE *pData, int N);

void hdmirx_clear_hpd() ;
void hdmirx_set_hpd() ;

///////////////// Delay Utility ////////////////////
void DelayUS(USHORT);
void delay1ms(USHORT);
BOOL DisableVGAChecking();

BOOL EDID_READ_BYTE( BYTE address, BYTE offset, BYTE byteno, BYTE *p_data, BYTE device);
BOOL EDID_WRITE_BYTE( BYTE address, BYTE offset, BYTE byteno, BYTE *p_data, BYTE device );

#endif
